<%@ page language="java" import="java.util.*,com.king.cms.common.*" pageEncoding="UTF-8"%>
<%  
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
//	String imgpath = (String)session.getAttribute("imgpath");
	String imgpath = basePath+"img/basic/";
	String cssstyle = (String)session.getAttribute("cssstyle"); 
	cssstyle = "basic";
	 
%>
<link href="<%=path %>/css/<%=cssstyle%>.css" rel="stylesheet" type="text/css">
<html>

<head>
<meta  http-equiv="Expires"     CONTENT="0">           
<meta  http-equiv="Cache-Control"     CONTENT="no-cache">           
<meta  http-equiv="Pragma"     CONTENT="no-cache">           
<script language="javascript">
function mySubmit(){
  if(document.form1.username.value == ""){
    alert("请输入用户名！");
    return;
  }
  if(document.form1.password.value == ""){
    alert("请输入密码！");
    return;
  }
  document.form1.submit();
}
function setMyNull(){
document.form1.username.value = "";
document.form1.password.value = "";
document.form1.username.focus(); 
}
if(self != top) 
 top.location.href = window.location.href;
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>信息发布管理系统</title>
</head>

<body bgcolor="#000000" background="img/index/bg_home.gif" text="#666666" link="#666666" vlink="#666666" alink="#666666" >
<SCRIPT language="">
</SCRIPT>

<form name="form1" method="post" action="logon.do" onkeypress ="keyEnter(event.keyCode)">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
    <td><table width="760" height="440" border="0" align="center" cellpadding="0" cellspacing="0" background="img/basic/<%=InitSystem.getValue("logon")==null?"in-bg.jpg":InitSystem.getValue("logon") %>">
        <tr>
            <td > <table width="75%" height="220" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </table>
              <table width="57%" border="0" align="right" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="30%" height="60">&nbsp;</td>
                  <td width="10%">&nbsp;</td>
                  <td width="30%">&nbsp;</td>
                  <td width="10%">&nbsp;</td>
                  <td width="20%">&nbsp;</td>
                </tr>
                <tr>
                  <td height="35">&nbsp;</td>
                  <td><div align="center">
                      <input name="username" type="text" size="10">
                    </div></td>
                  <td>&nbsp;</td>
                  <td><div align="center"><span class="font9">
                      <input name="password" type="password" size="10">
                      </span></div></td>
                  <td>&nbsp;</td>
                </tr>

                <tr>
                  <td height="42">&nbsp;</td>
                  <td><div align="center">
                      <img style="cursor: hand" src="img/index/dly_11.jpg" width="75" height="29" border="0" onClick="mySubmit()" >
                    </div></td>
                  <td><div align="center"> </div></td>
       <td> <img style="cursor: hand" src="img/index/dly_13.jpg" width="75" height="29" border="0" onclick="setMyNull()"></td>
                  <td>&nbsp;</td>
                </tr>
              </table> </td>
        </tr>
      </table> </td>
  </tr>
</table></form>
</body>
<script language="JavaScript">
function keyEnter(ikeyCode)
{
	var srcElement = window.event.srcElement;
	//判断回车键的问题
	if(srcElement.name=="password"&&ikeyCode==13)
	{
		mySubmit();
	}
}<%
if(request.getAttribute(ParameterDic.MESSAGE) != null){
%>
alert('<%=request.getAttribute(ParameterDic.MESSAGE) %>');
<%}%>
</script>
</html>